<!-- include tpl=head title="Review" -->
<script type="text/javascript">
var user_id = "{$session.user_id}";
</script>
<div id="content">
	<div id="main" class="bgColor">
		<div class="container clear">
			<!-- 支付流程 -->
			<ul class="liucheng clear">
				<li class="fl active">
					<div class="number">01</div>
					<p class="text">Shipping</p>
				</li>
				<li class="active">
					<div class="number">02</div>
					<p class="text">Order Review</p>
				</li>
				<li class="fr">
					<div class="number">03</div>
					<p class="text">Payment</p>
				</li>
			</ul>
			<form method="post" id="post_save" onsubmit="return order_create()">
			<input type="hidden" name="email" id="email" value="{$session.cart_email}" />
			<div class="leftBox2 fl">
				<div class="lcBox1">
					<h4 class="bTitle clear">01. Shipping</h4>
					<!-- loop from=$address key=$key value=$value id=$tmpid -->
					<!-- loop from=$value key=$k value=$v id=$idxx -->
					<input type="hidden" name="{$key}-{$k}" id="{$key}-{$k}" value="{$v}" />
					<!-- /loop -->
					<div class="d1">
						<p class="title">{func ucwords $key} Address</p>
						<div class="textBox">
							<p class="name">{$value.firstname} {$value.lastname}</p>
							<p>{$value.address}</p>
							<!-- if $value.address2 --><p>{$value.address2}</p><!-- /if -->
							<p><!-- if $value.city -->{$value.city}, <!-- /if --><!-- if $value.province -->{$value.province}, <!-- /if --> {$value.country}</p>
							<p>{$value.zipcode}</p>
							<p>{$value.mobile}</p>
						</div>
					</div>
					<!-- /loop -->
				</div>

				<div class="form2">
					<h4 class="bTitle clear">02. Order Review</h4>
					<div class="titleBox clear">
						<p class="title fl">Item(s) in Cart ( {$qty} )</p>
					</div>
					<ul class="list">
						<!-- loop from=$rslist key=$key value=$value id=$tmpid -->
						<li>
							<div class="cTable">
								<div class="imgBox">
									<img src="{$value.thumb ? $value.thumb : 'images/nopic.png'}" alt="{$value.title}" />
								</div>
								<div class="textBox">
									<p class="title">{$value.title}</p>
									<p>Quantity: {$value.qty}</p>
								</div>
								<div class="priceBox">
									<p class="price">${func number_format $value.price*$value.qty 0 . ,}</p>
								</div>
							</div>
						</li>
						<!-- /loop -->
					</ul>

					<div class="coupon">
						<div class="box1 clear">
							<input type="text" value="{$coupon_code}" placeholder="Gift card or discount code" id="coupon">
							<p class="btn" onclick="update_coupon()">Apply</p>
						</div>
					</div>

					<div class="tBox">
						<!-- loop from=$pricelist key=$key value=$value id=$tmpid -->
						<p class="clear">{$value.title} : <span><!-- if $value.price -->{$value.price}<!-- else -->$0<!-- /if --></span></p>
						<!-- /loop -->
					</div>

					<p class="total">Total :<span>{$price}</span></p>
					<p class="mianze">By clicking "Place Order" , you confirm that you have read and agreed to our <a href="{$config.ext.terms}" target="_blank">Terms of Use</a> and <a href="{$config.ext.privacy_link}" target="_blank">Privacy Policy.</a></p>
					<input type="submit" class="btn2" style="border:0;cursor:pointer;" value="CONTINUE" />
				</div>
			</div>
			</form>

			<div class="rightBox2 fr">
				<div class="wrap">
					<h4 class="bTitle clear">Order Summary <span>({$qty})</span></h4>
					<ul class="list">
						<!-- loop from=$rslist key=$key value=$value id=$tmpid -->
						
						<li>
							<div class="cTable">
								<div class="imgBox">
									<img src="{$value.thumb ? $value.thumb : 'images/nopic.png'}" alt="{$value.title}" />
								</div>
								<div class="textBox">
									<p class="title">{$value.title}</p>
									<p>{func price_format $value.price $value.currency_id} X {$value.qty}</p>
								</div>
								<div class="priceBox">
									<p class="price">{func price_format $value.price*$value.qty $value.currency_id}</p>
								</div>
							</div>
						</li>
						<!-- /loop -->
					</ul>


					<div class="box">
						<!-- loop from=$pricelist key=$key value=$value id=$tmpid -->
						<p class="clear">{$value.title} : <span><!-- if $value.price -->{$value.price}<!-- else -->$0<!-- /if --></span></p>
						<!-- /loop -->
					</div>

					<p class="total clear">Total :<span>{$price}</span></p>

				</div>
				<p class="bottomText">Shopping on qysea.com is safe and secure, your personal details are strictly protected.  For any inquiries, please contact <a href="mailto:service@qysea.com">service@qysea.com</a></p>
			</div>
		</div>
	</div>
</div>

<!-- include tpl=footer -->